package ch.fhnw.qualiscan.application.components;

import ch.fhnw.qualiscan.Config;
import ch.fhnw.qualiscan.core.LayoutComponent;

import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.HorizontalLayout;

import eu.livotov.tpt.i18n.TM;

@SuppressWarnings("serial")
public class LinkOptions extends LayoutComponent {

	@Override
	public void buildComponent() {
		
		HorizontalLayout Options = new HorizontalLayout();
		addComponent(Options);
		
		Button goHome = new Button(TM.get("general.home"));
		goHome.setIcon(Config.ICON_HOME);
		goHome.addListener(new Button.ClickListener() {
			public void buttonClick(ClickEvent event) {
				urlLib.setPage("Start");
			}
		});
		
		Options.addComponent(goHome);
		
	}

}
